package java8_19;

/**
 * @author oldliu
 * @since 1.0
 */
public class PhonTest2 {
    public static void main(String[] args) {
        //MobilePhone加上 new Battery
        MobilePhone p=new MobilePhone();
        p.brand="华为p50";
        p.prize=5799;
        p.color="天空蓝";
        p.b.brand="飞毛腿";
        p.b.vol=6000;
        p.show();
    }
}
